home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.pl1,comp.lang.c
- Subject: Re: PL/I and C
- Date: 29 Feb 1996 17:11:49 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb29101149@qcd.lanl.gov>
- References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <AD536AAB9668B76CD@mcdialb09.it.luc.edu>
- <312E363C.3CDE@corp.dialog.com>
- <AD53AB1396681879FA@mcdialb10.it.luc.edu>
- <4h05lqINNh1t@anvil.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: c2a192@ugrad.cs.ubc.ca's message of 27 Feb 1996 15:55:38 -0800
-
- In article <4h05lqINNh1t@anvil.ugrad.cs.ubc.ca>
- c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
-
- <snip>
- KK: > foo *x;
- KK: > bar *y;
- KK: >
- KK: > y=(bar *) x;
- KK:
- KK: This is not allowed. A pointer may be converted to a void * object and back
- KK: _to_the_same_pointer_type_ with full recovery of the pointer. That
- is all that
-
- Wrong. That is the rule for _cast-free_ conversion. Any object
- (including incomplete) pointer can be _cast_ to any other object
- pointer _with less strict alignment_ and back, with no change.
-
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-